<%@ include file="base.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ page import="net.amsoft.iservice.ilink.service.ILinkService" %>
<%@ page import="java.util.Map" %>
<%@ page import="net.amsoft.iservice.ilink.webapp.dataObject.LoginData" %>
<%@ page import="net.amsoft.iservice.ilink.util.ILinkConstants" %>
<%@ page import="net.amsoft.iservice.ilink.hibernate.IBroker" %>
<%
	// Service URLs
	String issoURL = "#";
	String contactURL = "#";
	
	// Get IBroker Data
	IBroker oIBroker = ILinkService.getIBroker(request.getServerName());
		
	// Get loggedInSynonym
	LoginData oLoginData = (LoginData) session.getAttribute(ILinkConstants.SESSION_LOGIN_OBJ);
	if ((oIBroker!=null) && (oLoginData!=null))
	{
		issoURL = oIBroker.getIssoURL() + oLoginData.getLoggedInSynonym();
		contactURL = oIBroker.getContactURL() + oLoginData.getLoggedInSynonym();
	}

%>

<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title><bean:message key="title.home" /></title>
<link rel="stylesheet" type="text/css" href="styleSheets/iservices.css" />
<SCRIPT LANGUAGE="JavaScript">
<!--
	function submit(doAction)
	{
		document.LoginForm.action=appBase+doAction;
		document.LoginForm.submit();
	}
	
//-->
</SCRIPT>

</head>

<body>

<center>
<table cellspacing=25 border=0 cellpadding=0>

		<%@ include file="leftMenu.jsp" %>
		<td width=605 valign=top>
		<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr><td align="left" colspan="2" height="23px" valign="bottom"><a href="<%=issoURL%>"><img src="<%=imagePath%>/tab-noclick-isso.jpg" border="0" onmouseover="this.src='<%=imagePath%>/tab-rollover-isso.jpg'" onmouseout="this.src='<%=imagePath%>/tab-noclick-isso.jpg'" /></a><a href="<%=contactURL%>"><img src="<%=imagePath%>/tab-noclick-contact.jpg" border="0" onmouseover="this.src='<%=imagePath%>/tab-rollover-contact.jpg'" onmouseout="this.src='<%=imagePath%>/tab-noclick-contact.jpg'" /></a><img src="<%=imagePath%>/tab-click-forwarding.jpg" border="0" onmouseover="this.src='<%=imagePath%>/tab-rollover-forwarding.jpg'" onmouseout="this.src='<%=imagePath%>/tab-click-forwarding.jpg'" /></td></tr>
			<tr>
				<td valign="top">
				<table border="0" cellpadding="0" cellspacing="0" width="290px">
					<tr height="45">
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						<td width="270" bgcolor="#999999">
							<table cellpadding="0" cellspacing="0">
								<tr valign="top">
									<td>
										<img src="<%=imagePath%>/title_forwarding_home.gif" align="left"/>
									</td>
									<td>
										<html:link action="/Logout" titleKey="msg.logout"> 
											<img src="<%=imagePath%>/button-logout.jpg" border="0" align="right" />
										</html:link>
									</td>
								</tr>
							</table>
						</td>
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
					</tr>			
					<tr>
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						<td width="270" >
							<table width="270" border="0" bgcolor="#CCCCCC" cellpadding="0" cellspacing="0">
							<tr>
								<td >&nbsp;</td>	
								<td  colspan="2" height="35px"><font class="black-smalltext">
									&nbsp;&nbsp;<bean:message
									key="label.welcome" /><b> <bean:write name="LoginData"
									property="loggedInSynonym" scope="session" /></b></font>
								</td>
								<td >&nbsp;</td>	
							</tr>
							<tr>
								<td >&nbsp;</td>	
								<td colspan=2" class="blue-smalltext"><b><html:errors /></b></td>
								<td >&nbsp;</td>	
							</tr>
							<tr>
								<td >&nbsp;</td>	
								<td height="16px" colspan="2">&nbsp;</td>
								<td >&nbsp;</td>	
							</tr>
							<tr>
								<td >&nbsp;</td>						
								<td height="2px" colspan="2" valign="middle"><img
									src="<%=imagePath%>/dotted-line.gif" /></td>
								<td >&nbsp;</td>								
							</tr>
							<tr>
								<td >&nbsp;</td>	
								<td height="10px" colspan="2">&nbsp;</td>
								<td >&nbsp;</td>	
							</tr>
							<tr>
								<td >&nbsp;</td>			
								<td height="5px" colspan="2" class="blue-smalltext">
									<bean:message key="msg.view.link.desc" />
								</td>
								<td >&nbsp;</td>				
							</tr>
							<tr>
								<td >&nbsp;</td>
								<td colspan="2" align="right">
									<html:link action="/PreConfig" titleKey="msg.view.links"> 
										<img src="<%=imagePath%>/button-view-links.jpg" border="0" />
									</html:link>
								</td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td >&nbsp;</td>	
								<td height="80px" colspan="2">&nbsp;</td>
								<td >&nbsp;</td>	
							</tr>
						</table>
						</td>
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
					</tr>
					<tr height="10">
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						<td width="270" bgcolor="#999999"></td>
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
					</tr>						
				</table>
				</td>
				<td width=25><img src="<%=imagePath%>/white-square.gif" /></td>
				<td width=290 height="300" valign=top><img
					src="<%=imagePath%>/related-news.gif?<%=dt.getTime()%>" width="270" height="300" /><br>
				</td>
			</tr>							
		</table>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td colspan=2></td>
	</tr>
</table>

</center>
</body>
</html>
